package com.magupe.im.web.db.service;

import com.magupe.im.web.protocol.request.GroupMessageRequest;
import com.magupe.im.web.protocol.request.MessageRequest;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;

public interface DataService {

    void saveMessage(MessageRequest request);

    void saveGroupMessage(GroupMessageRequest request);

    void sendOfflineMessage(String appId, String userId, String receiverId, Channel channel);

    void cacheMessage(ChannelFuture future, MessageRequest request);
}
